projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
430abe1
)
power: regulator use node name when no regulator-name
author
Peng Fan
<
[email protected]
>
Fri, 7 Aug 2015 08:43:42 +0000
(16:43 +0800)
committer
Przemyslaw Marczak
<
[email protected]
>
Wed, 12 Aug 2015 08:02:59 +0000
(10:02 +0200)
If there is no property named 'regulator-name' for regulators,
choose node name instead, but not directly return failure value.
Signed-off-by: Peng Fan <
[email protected]
>
Cc: Przemyslaw Marczak <
[email protected]
>
Cc: Simon Glass <
[email protected]
>
drivers/power/regulator/regulator-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/power/regulator/regulator-uclass.c
b/drivers/power/regulator/regulator-uclass.c
index f3fe7a55e1b5828a728fb6bc47244cc7b143a1c9..a5170df9165152f81eda9c6f6dec0839ba0fbb74 100644
(file)
--- a/
drivers/power/regulator/regulator-uclass.c
+++ b/
drivers/power/regulator/regulator-uclass.c
@@
-256,7
+256,9
@@
static int regulator_post_bind(struct udevice *dev)
if (!uc_pdata->name) {
debug("%s: dev: %s has no property 'regulator-name'\n",
__func__, dev->name);
- return -EINVAL;
+ uc_pdata->name = fdt_get_name(blob, offset, NULL);
+ if (!uc_pdata->name)
+ return -EINVAL;
}
if (regulator_name_is_unique(dev, uc_pdata->name))